<template>
    <div class="cross" @click="show">
        <svg t="1689990365246" class="cross-svg" viewBox="0 0 1024 3460" version="1.1" xmlns="http://www.w3.org/2000/svg"
             p-id="10227">
            <path d="M455.11168 113.77664H512v3253.33504H455.11168V113.77664z" :fill="element.style.backgroundColor" p-id="10228"></path>
            <path d="M455.11168 1700.66752h455.11168v56.88832H455.11168V1700.66752z" :fill="element.style.backgroundColor" p-id="10229"></path>
        </svg>
    </div>
</template>

<script>
import OnEvent from '../../common/OnEvent'

export default {
    extends: OnEvent,
    props: {
        propValue: {
            type: String,
            required: true,
            default: '',
        },
        element: {
            type: Object,
            default: () => {
            },
        },
    },
    methods: {
        show() {
            console.log(1)
        },
    },
}
</script>

<style lang="scss" scoped>
.cross {
    display: inline-block;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    outline: 0;
    margin: 0;
    width: 100%;
    height: 100%;

    .cross-svg {
        width: 100%;
        height: 100%;
    }
}
</style>
